package top.zhuyougu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author 猪油骨
 * @since 2022-12-10 01:15:43
 */
@Getter
@Setter
@TableName("b_user_log")
@ApiModel(value = "UserLog对象", description = "日志表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserLog implements Serializable {
    private static final long serialVersionUID=1L;
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("操作用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("ip地址")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("操作地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("操作类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("操作日志")
    @TableField("description")
    private String description;

    @ApiModelProperty("操作模块")
    @TableField("model")
    private String model;

    @ApiModelProperty("操作时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("操作结果")
    @TableField("result")
    private String result;

    @ApiModelProperty("操作系统")
    @TableField("access_os")
    private String accessOs;

    @ApiModelProperty("浏览器")
    @TableField("browser")
    private String browser;

    @ApiModelProperty("客户端类型")
    @TableField("client_type")
    private String clientType;


}
